package cn.iwit.util;

import java.util.ArrayList;
import java.util.List;

public class PageInfo<T> {
	private List<T> list = new ArrayList<T>();
	private int pageSize;
	private int pageNum;
	private int total;
	private String orderBy;
	public PageInfo(){
		
	}
	public PageInfo(int pageNum,int pageSize,String orderBy){
		this.setPageNum(pageNum);
		this.setPageSize(pageSize);
		this.setOrderBy(orderBy);
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
}
